import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '订单号',
    align: "center",
    dataIndex: 'orderNo'
  },
  {
    title: '购买人',
    align: "center",
    dataIndex: 'userId'
  },
  {
    title: '购买商品',
    align: "center",
    dataIndex: 'goodId'
  },
  {
    title: '订单金额',
    align: "center",
    dataIndex: 'money'
  },
  {
    title: '用户名',
    align: "center",
    dataIndex: 'userName'
  },
  {
    title: '商品名称',
    align: "center",
    dataIndex: 'goodName'
  },
  {
    title: '订单状态',
    align: "center",
    dataIndex: 'orderStatus'
  },
];

// 高级查询数据
export const superQuerySchema = {
  orderNo: {title: '订单号',order: 0,view: 'text', type: 'string',},
  userId: {title: '购买人',order: 1,view: 'text', type: 'string',},
  goodId: {title: '购买商品',order: 2,view: 'text', type: 'string',},
  money: {title: '订单金额',order: 3,view: 'number', type: 'number',},
  userName: {title: '用户名',order: 4,view: 'text', type: 'string',},
  goodName: {title: '商品名称',order: 5,view: 'text', type: 'string',},
  orderStatus: {title: '订单状态',order: 6,view: 'text', type: 'string',},
};
